package com.chookss.mine.set;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.chookss.R;
import com.chookss.tools.GlideUtils;
import com.chookss.tools.Utils;
import com.lvgroup.hospital.base.BaseAct;

import org.jetbrains.annotations.Nullable;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class AboutActivity extends BaseAct {
    @BindView(R.id.common_title_txt)
    TextView commonTitleTxt;
    @BindView(R.id.about_version)
    TextView aboutVersion;
    @BindView(R.id.ivLogo)
    ImageView ivLogo;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {
        initState();
        commonTitleTxt.setText("关于" + getResources().getString(R.string.app_name));
        aboutVersion.setText(Utils.getVersionName(this));
        ivLogo.setBackgroundResource(GlideUtils.loadLogoId(this));

    }

    @OnClick(R.id.common_title_back)
    public void onClick() {
        finish();
    }
}
